package com.panfeng.xcloud.boss.provider.member.web.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@ApiModel(value = "重置登录密码请求")
public class ResetLoginPwdReqVO implements Serializable {

    @ApiModelProperty("账号类型 0:手机 1:邮箱")
    private Integer accountType;

    @ApiModelProperty("账号")
    private String accountNumber;

    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]{6,20}$", message = "密码格式不正确")
    @ApiModelProperty("登录密码")
    private String password;

    @ApiModelProperty("验证码")
    private String verifyCode;

}
